home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
ftp.cs.arizona.edu
/
ftp.cs.arizona.edu.tar
/
ftp.cs.arizona.edu
/
icon
/
newsgrp
/
group98b.txt
/
000045_icon-group-sender _Mon Jun 1 09:05:23 1998.msg
< prev
next >
Wrap
Internet Message Format
|
2000-09-20
|
3KB
Return-Path: <icon-group-sender>
Received: from kingfisher.CS.Arizona.EDU (kingfisher.CS.Arizona.EDU [192.12.69.239])
by baskerville.CS.Arizona.EDU (8.8.8/8.8.7) with SMTP id JAA02631
for <icon-group-addresses@baskerville.CS.Arizona.EDU>; Mon, 1 Jun 1998 09:05:22 -0700 (MST)
Received: by kingfisher.CS.Arizona.EDU (5.65v4.0/1.1.8.2/08Nov94-0446PM)
id AA06428; Mon, 1 Jun 1998 09:05:16 -0700
Date: Fri, 29 May 98 22:28:40 -0400
Message-Id: <9805300228.AA0191@valinet.com>
From: Paul Abrahams <abrahams@acm.org>
To: jeffery@cs.utsa.edu
Cc: icon-group@optima.CS.Arizona.EDU
In-Reply-To: <199805231524.KAA05320@segfault.cs.utsa.edu> (message from
Clinton Jeffery on Sat, 23 May 1998 10:24:33 -0500)
Subject: Re: Annoying things
Reply-To: abrahams@acm.org
Errors-To: icon-group-errors@optima.CS.Arizona.EDU
Status: RO
Content-Length: 1627
>>>>> On Sat, 23 May 1998 10:24:33 -0500, Clinton Jeffery <jeffery@segfault.cs.utsa.edu> said:
|vladimir> [open(dirname) gives a file that returns a directory's
|vladimir> filenames, one per line] Thanks for the suggestion, it works!
|vladimir> You should however mention it in the Icon reference otherwise
|vladimir> we can only guess... Are there some other "undocumented"
|vladimir> features like with Microsoft? :-)
|Clint> Oops. Well, at least I release the source code. :-)
|Clint> Actually, the reason that directory reading is not yet
|Clint> documented is that it is likely to change. For these kind of
|Clint> operating system interactions whatever I implement and document
|Clint> needs to be consistent with Shamim Mohamed's POSIX interface for
|Clint> Icon, Unicon. His interface supports open(dirname) but
|Clint> specifies more complete file information returned for each
|Clint> directory entry, such as permissions, ownership, and timestamps.
|Clint> Prior to this I had made open(dirname) simpler, and some
|Clint> graduate students of mine had implemented a separate function
|Clint> for such file attributes, fattrib(). He and I need to talk
|Clint> about it a bit more, but I am likely to adopt his semantics for
|Clint> the lines returned by open(dirname).
Given the variances among operating systems, perhaps there ought to be a
convention that the first space-delimited item in each line produced by
open(dirname) is the filename.
This does seem close to my earlier suggestion that reading a directory
should act as a generator of the filenames within the directory.
Paul (Paul Abrahams)